﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000B0 RID: 176
	internal class InvalidInt64 : IInt64Decoder
	{
		// Token: 0x060002BF RID: 703 RVA: 0x0000BA00 File Offset: 0x00009E00
		private InvalidInt64()
		{
		}

		// Token: 0x060002C0 RID: 704 RVA: 0x0000BA08 File Offset: 0x00009E08
		public long Read(byte[] bytes, int offset, out int readSize)
		{
			throw new InvalidOperationException(string.Format("code is invalid. code:{0} format:{1}", bytes[offset], MessagePackCode.ToFormatName(bytes[offset])));
		}

		// Token: 0x040000D1 RID: 209
		internal static readonly IInt64Decoder Instance = new InvalidInt64();
	}
}
